package lueder.servlets;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class FooterServlet
 */
public class FooterServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public FooterServlet() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String path = request.getContextPath()+"/";
		
		response.setContentType("text/html");
		PrintWriter out = response.getWriter();
		out.println("<div class='footer'>");
		out.println("<div class='left_footer'><img src='"+path+"images/footer_logo.gif' alt='' title='' /><br /> <a href='http://csscreme.com/freecsstemplates/' title='free templates'><img src='"+path+"images/csscreme.gif' alt='free templates' title='free templates' border='0' /></a></div>");
		out.println("<div class='right_footer'>");
		out.println("<a href='#'>home</a>");
		out.println("<a href='#'>about us</a>");
		out.println("<a href='#'>services</a>");
		out.println("<a href='#'>privacy policy</a>");
		out.println("<a href='#'>contact us</a>");
		out.println(" ");
		out.println("</div>");
		out.println("");
		out.println(" ");
		out.println(" </div>");
		out.println("");

		out.println("</div>");

		out.println("</body>");
		out.println("</html>");
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doGet(request, response);
	}

}
